﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="DeleteUser.aspx.cs" Inherits="ZhaoPin.Mii.DeleteUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="Label1" runat="server" Text="输入身份证号码："></asp:Label>
    <asp:TextBox ID="tbIdentityCardNumber" runat="server"></asp:TextBox>
    <asp:Button ID="btnSearch" runat="server" Text="查询" onclick="btnSearch_Click" />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        EmptyDataText="没有数据可以显示" onrowcommand="GridView1_RowCommand" 
        onrowdeleting="GridView1_RowDeleting">
        <Columns>
            <asp:BoundField DataField="IdentityCardNumber" HeaderText="身份证号" ReadOnly="True"
                SortExpression="IdentityCardNumber" />
            <asp:BoundField DataField="RealName" HeaderText="姓名" ReadOnly="True" SortExpression="RealName" />
            <asp:BoundField DataField="Sequence" HeaderText="报名序号" ReadOnly="True" SortExpression="Sequence" />
            <asp:BoundField DataField="PhoneNumber" HeaderText="联系电话" ReadOnly="True" SortExpression="PhoneNumber" />
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="true"
                        CommandArgument='<%# Eval("Id") %>'></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
